<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算机的奇妙世界</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .text-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: -0.2rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        .component-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        .float-animation {
            animation: float 3s ease-in-out infinite;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-5xl md:text-7xl font-bold mb-6 tracking-tight">
                <i class="fas fa-microchip mr-4 float-animation"></i>
                计算机的奇妙世界
            </h1>
            <p class="text-xl md:text-2xl font-light max-w-3xl mx-auto leading-relaxed">
                揭开现代科技核心的神秘面纱，探索构建数字世界的精密组件
            </p>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-7xl mx-auto px-6 py-16">
        <!-- Introduction -->
        <div class="bg-white rounded-2xl shadow-xl p-10 mb-12">
            <p class="text-lg leading-relaxed text-gray-700">
                <span class="drop-cap">计</span>算机，这个在我们日常生活中随处可见的神奇设备，其背后蕴藏着复杂而精密的组件，形成了一个协同工作的生态系统。让我们一起揭开计算机的神秘面纱，了解它的基本组成。
            </p>
        </div>

        <!-- Components Grid -->
        <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16">
            <!-- CPU Card -->
            <div class="component-card rounded-2xl p-8 card-hover">
                <div class="text-center mb-6">
                    <i class="fas fa-brain text-6xl text-gradient"></i>
                </div>
                <h3 class="text-2xl font-bold mb-4 text-center">中央处理器 (CPU)</h3>
                <p class="text-gray-600 leading-relaxed">
                    计算机的大脑，负责执行各种计算和指令。就像一位快速聪明的工匠，不断地进行数学运算、逻辑判断，使计算机得以正常运转。
                </p>
            </div>

            <!-- Memory Card -->
            <div class="component-card rounded-2xl p-8 card-hover">
                <div class="text-center mb-6">
                    <i class="fas fa-memory text-6xl text-gradient"></i>
                </div>
                <h3 class="text-2xl font-bold mb-4 text-center">内存 (RAM)</h3>
                <p class="text-gray-600 leading-relaxed">
                    计算机的临时记忆，存储当前正在执行的程序和数据。如同一张办公桌，上面摆放着当前正在处理的文件和文件夹。
                </p>
            </div>

            <!-- Storage Card -->
            <div class="component-card rounded-2xl p-8 card-hover">
                <div class="text-center mb-6">
                    <i class="fas fa-hdd text-6xl text-gradient"></i>
                </div>
                <h3 class="text-2xl font-bold mb-4 text-center">存储设备</h3>
                <p class="text-gray-600 leading-relaxed">
                    硬盘和固态硬盘是计算机的长期存储器，负责保存操作系统、应用程序和用户数据，就像一个巨大的文件柜。
                </p>
            </div>

            <!-- Bus Card -->
            <div class="component-card rounded-2xl p-8 card-hover">
                <div class="text-center mb-6">
                    <i class="fas fa-road text-6xl text-gradient"></i>
                </div>
                <h3 class="text-2xl font-bold mb-4 text-center">总线系统</h3>
                <p class="text-gray-600 leading-relaxed">
                    计算机内部的"高速公路"，连接CPU、内存和各种输入输出设备，使它们能够高效地交换信息。
                </p>
            </div>

            <!-- Input Card -->
            <div class="component-card rounded-2xl p-8 card-hover">
                <div class="text-center mb-6">
                    <i class="fas fa-keyboard text-6xl text-gradient"></i>
                </div>
                <h3 class="text-2xl font-bold mb-4 text-center">输入设备</h3>
                <p class="text-gray-600 leading-relaxed">
                    键盘、鼠标等设备让我们能够向计算机发送指令和数据，实现人机交互的第一步。
                </p>
            </div>

            <!-- Output Card -->
            <div class="component-card rounded-2xl p-8 card-hover">
                <div class="text-center mb-6">
                    <i class="fas fa-desktop text-6xl text-gradient"></i>
                </div>
                <h3 class="text-2xl font-bold mb-4 text-center">输出设备</h3>
                <p class="text-gray-600 leading-relaxed">
                    显示器、打印机等设备展示计算机的处理结果，让我们能够看到和使用计算机的输出。
                </p>
            </div>
        </div>

        <!-- System Architecture Visualization -->
        <div class="bg-white rounded-2xl shadow-xl p-10 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-center text-gradient">计算机系统架构图</h2>
            <div class="mermaid">
                graph TB
                    CPU[<i class='fas fa-brain'></i> 中央处理器 CPU]
                    RAM[<i class='fas fa-memory'></i> 内存 RAM]
                    Storage[<i class='fas fa-hdd'></i> 存储设备]
                    Bus[<i class='fas fa-road'></i> 总线系统]
                    Input[<i class='fas fa-keyboard'></i> 输入设备]
                    Output[<i class='fas fa-desktop'></i> 输出设备]
                    
                    CPU <--> Bus
                    RAM <--> Bus
                    Storage <--> Bus
                    Input --> Bus
                    Bus --> Output
                    
                    style CPU fill:#667eea,stroke:#fff,stroke-width:3px,color:#fff
                    style RAM fill:#764ba2,stroke:#fff,stroke-width:3px,color:#fff
                    style Storage fill:#667eea,stroke:#fff,stroke-width:3px,color:#fff
                    style Bus fill:#f093fb,stroke:#fff,stroke-width:3px,color:#fff
                    style Input fill:#764ba2,stroke:#fff,stroke-width:3px,color:#fff
                    style Output fill:#667eea,stroke:#fff,stroke-width:3px,color:#fff
            </div>
        </div>

        <!-- Conclusion -->
        <div class="bg-gradient-to-r from-purple-50 to-indigo-50 rounded-2xl p-10">
            <h2 class="text-3xl font-bold mb-6 text-center">探索无限可能</h2>
            <p class="text-lg leading-relaxed text-gray-700 mb-6">
                计算机的基本组成就像一个精密而高效的工厂，各个组件协同工作，完成着各种任务。通过了解这些基本组成部分，我们能更好地理解计算机的运作原理，为更深入的学习打下坚实基础。
            </p>
            <p class="text-lg leading-relaxed text-gray-700 text-center font-medium">
                让我们一同走进计算机的奇妙世界，探索其中的奥秘。
            </p>
        </div>
    </main>

    <script>
        mermaid.initialize({ 
            startOnLoad: true,
            theme: 'default',
            themeVariables: {
                primaryColor: '#667eea',
                primaryTextColor: '#fff',
                primaryBorderColor: '#fff',
                lineColor: '#5a67d8',
                secondaryColor: '#764ba2',
                tertiaryColor: '#f093fb'
            }
        });
    </script>
</body>
</html>